<?php
/**
 * Created by litong on Date: 2019/2/28 0028 下午 10:37
 */
$treeString="[{
    \"id\": 1,
    \"text\": \"Node 1\",
    \"state\": \"closed\",
    \"children\": [{
        \"id\": 11,
        \"text\": \"Node 11\"
    },{
        \"id\": 12,
        \"text\": \"Node 12\"
    }]
},{
    \"id\": 2,
    \"text\": \"Node 2\",
    \"state\": \"closed\"
}]";
echo $treeString;